package scau.mis4.chanyulin.entity;

import scau.mis4.chanyulin.base.common.Unique;

import javax.persistence.Transient;

/**
 * Created by cyl on 2018/03/27.
 * OrderItem实体类
 */
public class OrderItem extends Unique {
    private String orderTotId;

    private String detailId;

    private Double receipt;

    private Double referencePrice;

    private String title;

    private String clazz;

    private String brand;

    private String color;

    private String size;

    private String gender;

    private String age;

    private String status;

    private int num;

    private String promotionId;

    // ----------------------------------

    @Transient
    private Promotion promotion;

    // ----------------------------------

    public OrderItem() {
    }

    public OrderItem(String orderTotId, String detailId, Double receipt, Double referencePrice, String title, String clazz, String brand, String color, String size, String gender, String age, String status, int num, String promotionId) {
        this.orderTotId = orderTotId;
        this.detailId = detailId;
        this.receipt = receipt;
        this.referencePrice = referencePrice;
        this.title = title;
        this.clazz = clazz;
        this.brand = brand;
        this.color = color;
        this.size = size;
        this.gender = gender;
        this.age = age;
        this.status = status;
        this.num = num;
        this.promotionId = promotionId;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id='" + id + '\'' +
                ", orderTotId='" + orderTotId + '\'' +
                ", detailId='" + detailId + '\'' +
                ", receipt=" + receipt +
                ", referencePrice=" + referencePrice +
                ", title='" + title + '\'' +
                ", clazz='" + clazz + '\'' +
                ", brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", size='" + size + '\'' +
                ", gender='" + gender + '\'' +
                ", age='" + age + '\'' +
                ", status='" + status + '\'' +
                ", num=" + num +
                ", promotionId='" + promotionId + '\'' +
                ", promotion=" + promotion +
                '}';
    }

    public String getOrderTotId() {
        return orderTotId;
    }

    public void setOrderTotId(String orderTotId) {
        this.orderTotId = orderTotId;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    public Double getReceipt() {
        return receipt;
    }

    public void setReceipt(Double receipt) {
        this.receipt = receipt;
    }

    public Double getReferencePrice() {
        return referencePrice;
    }

    public void setReferencePrice(Double referencePrice) {
        this.referencePrice = referencePrice;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPromotionId() {
        return promotionId;
    }

    public void setPromotionId(String promotionId) {
        this.promotionId = promotionId;
    }

    public Promotion getPromotion() {
        return promotion;
    }

    public void setPromotion(Promotion promotion) {
        this.promotion = promotion;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
